<?php

include_once "../../config_bd.php";
    
$idcliente = $_GET['idcliente'];


$result = mysql_query("SELECT  p.idpet, p.nome FROM pet p WHERE idcliente = " . $idcliente);

echo "<option value=\"0\" > Escolha o PET </option>";
    while ($row = mysql_fetch_array($result)) {
        echo "<option value='" . $row['idpet'] . "'>" . $row['nome']. "</option>";
}
?>